<?php
declare(strict_types=1);

use Zms\Excel\Export;

require_once dirname(__DIR__) . "/vendor/autoload.php";

$result = Export::instance(__DIR__)
    ->setFileName('工作报表')
    ->setColumn(['姓名', '手机'])
    ->setData([
        ['卫青', '19877777777'],
        ['霍去病', '19866666666']
    ])
    ->appendData(['张三', '18767778987'])
    ->appendData(['李四', '18987676544'])
    ->save();
